<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<jsp:useBean id="actionBean" scope="page"
             class="cz.muni.fi.pa165.bookingmanager.web.RoomActionBean"/>
<s:layout-render name="../layout.jsp" title="moduleNames.rooms">
    <s:layout-component name="body">
        <div class="table">
        <table class="listing" cellpadding="0" cellspacing="0">
                <img src="${pageContext.request.contextPath}/backend/img/bg-th-left.gif" width="8" height="7" alt="" class="left" /> <img src="${pageContext.request.contextPath}/backend/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
                <tr>
                    <th class="first"><f:message key="entities.room.room_Number" /></th>
                    <th><f:message key="entities.room.capacity" /></th>
                    <th><f:message key="entities.room.price" /></th>
                    <th><f:message key="entities.room.hotel" /></th>
                    <!--<th><f:message key="global.edit" /></th>-->
                    <!--<th class="last"><f:message key="global.delete" /></th>-->
                </tr>                
            </table>
            <c:forEach var="room" items="${actionBean.rooms}">
                <tr>
                    <td class="first_style1" >${room.roomNumber}</td>
                    <td>${room.capacity}</td>
                    <td>${room.price}</td>
                    <td>${room.hotel}</td>
                    <td></td>
                    <td class="last"></td>
                </tr>
            </c:forEach>
        </div>
    </s:layout-component>
</s:layout-render>
